<?php 
/*
* 阅读日志页面
*/
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div id="middle">
<div id="left" style="width:605px;">
     <div class="single">
       <div class="active">
	     <h1><?php topflg($top); ?><?php echo $log_title; ?></h1>
	   </div>
        <div class="date">
          <div class="left">
             <span class="date">
			 <?php blog_sort($logid); ?>&nbsp;&nbsp;<?php editflg($logid,$author); ?>
			 </span>
			 <span class="time">&nbsp;&nbsp;<?php echo gmdate('Y-n-j G:i l', $date); ?>
			 &nbsp;&nbsp;浏览 <?php echo $views; ?> 次
			 </span>
          </div><!-- #left -->
        </div><!-- #date -->
   <div class="content">
    
      <p><?php echo $log_content; ?></p>
   </div><!-- #content -->
	   <p class="tag"><?php blog_tag($logid); ?></p>
	   <?php doAction('log_related', $logData); ?>
	   <P class="nextlog"><?php neighbor_log($neighborLog); ?></P>
         <div class="post_heading">
		  <h2 class="left_heading ">相关阅读</h2>
		 </div><!-- #post_heading -->
           <div class="related_articles ">
		   <?php 
		   $log_Model = new Log_Model;
		   $logs = $log_Model->getLogsForHome("and sortid=$sortid and top!='y' ORDER BY rand() DESC", 0, 4);
		    foreach($logs as $key=>$row){?>
		     <a href="<?php echo Url::log($row['gid']);?>" title="<?php echo $row['title'];?>" target="_blank">
			 <img <?php if($key=='3'){?>class="last"<?php }?> src="<?php logs_thumb($row,'95','74'); ?>" 
			 alt="<?php echo $row['title'];?>" /></a>
			 <?php }?>
           </div><!-- #related_articles -->
     <div class="post_heading">
	  <h2 class="left_heading ">分享</h2>
	 </div><!-- #post_heading -->
        <div class="share "> 
            <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_baidu"></a>
        <a class="bds_t163"></a>
		<a class="bds_tsohu"></a>
        <a class="bds_renren"></a>
        <span class="bds_more">更多</span>
		<a class="shareCount" id="last"></a>
    </div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=165286" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
<!-- Baidu Button END -->
			
        </div><!-- #share -->
      <div class="post_heading">
	  <h2 class="left_heading ">关于作者</h2>
	  </div><!-- #post_heading -->
        <div class="author ">
           <div class="icon">
		   <?php {
	          global $CACHE;
	           $user_cache = $CACHE->readCache('user');
	           $name = $user_cache[1]['mail'] != '' ? "<a href=\"mailto:".$user_cache[1]['mail']."\">".$user_cache[1]['name']."</a>" : $user_cache[1]['name'];?>
	            <?php if (!empty($user_cache[1]['photo']['src'])): ?>
	              <img alt='<?php echo $blogname; ?>' src='<?php echo BLOG_URL.$user_cache[1]['photo']['src']; ?>' class='avatar avatar-75 photo' height='75' width='75' />
	            <?php endif;?>
				<div class="title">
				<a href="<?php echo BLOG_URL; ?>" title="访问 <?php echo $blogname; ?> 的站点" rel="external"><?php echo $name; ?></a>
				</div><!-- #title -->
             <?php }?>
            </div><!-- #icon -->
        <div class="authorcontent">
         <p><?php echo $user_cache[1]['des']; ?><br/>
		 本站地址:<a href="<?php echo BLOG_URL; ?>" title="<?php echo $blogname; ?>" target="_blank"><?php echo BLOG_URL; ?></a><br>
		 本文地址:<a href="<?php echo Url::log($logid); ?>" title="<?php echo $log_title; ?>" target="_blank"><?php echo Url::log($logid); ?></a><br/>
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6188876196041059";
/* 468x15 */
google_ad_slot = "9065295022";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br/>
		 <?php blog_trackback($tb, $tb_url, $allow_tb); ?></p>
       </div><!-- #content -->
       </div><!-- #author -->
</div><!-- #single -->
<?php include View::getView('comments');?>
</div><!-- #left closer -->



<div id="right-x">
<?php include View::getView('tabs');?>
<div id="lt_300x250_widget-3">
   <h3 class="widget-title"><span class="title">广而告知</span></h3>
   <div id="ad_300">
    <!-- 广告位：300x250-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6188876196041059";
/* 300x250, 创建于 10-8-6 */
google_ad_slot = "2321441221";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
	</div>
</div>
<?php include View::getView('side');
?>
</div><!-- #right closer -->
<?php
 include View::getView('footer');
?>
